﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Group/1/ManagePage.Master"
    Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="/Scripts/swfobject.js"></script>
    <script type="text/javascript" src="/Scripts/jquery.uploadify.min.js"></script>
    <script type="text/javascript" src="/Scripts/jquery.colorbox-min.js"></script>
    <script type="text/javascript">
        $(function () {
            $('#custom_file_upload').uploadify({
                'swf': '/Content/Style/uploadify.swf',
                'uploader': '/Public/TempUpload',
                'auto': true,
                'fileExt': '*.jpg;*.gif;*.png',
                'fileDesc': 'Image Files (.JPG, .GIF, .PNG)',
                'queueSizeLimit': 1,
                'buttonText': '<a href="#">上传活动海报</a>',
                'itemTemplate': '<div></div>',
                'onUploadComplete': function (file) {
                    $("#imgPhoto").attr("src", "/TempImage/" + file.name);
                    $("#ImgName").val(file.name);
                    $("#progress").fadeOut();
                },
                'onUploadProgress': function (file, bytesUploaded, bytesTotal, totalBytesUploaded, totalBytesTotal) {
                    $('#progress').html(totalBytesUploaded + '/' + totalBytesTotal);
                }
            });
        });
    </script>
    <div class="main_wrapper clear">
        <div class="mod_box">
            <% using (Html.BeginForm("CreateGroupActivity", "Activity", FormMethod.Post))
               { %>
            <div class="creat_event">
                <div class="title yahei">
                    <h2>
                        发起活动</h2>
                    <div class="more">
                        <a href="#">返回活动</a></div>
                </div>
                <div class="creat_event_form clear">
                    <div class="event_pic">
                        <div class="pic">
                            <img id="imgPhoto" src="/Content/image/event_pic.png" width="160" height="200" alt="" /></div>
                        <div class="upload_link">
                            <i class="icon"></i>
                            <input id="custom_file_upload" type="file" name="Filedata" />
                            <%= Html.Hidden("ImgName")%>
                        </div>
                    </div>
                    <div class="event_detail">
                        <div class="item">
                            <span>活动类型：</span><p>
                                <select name="Type">
                                    <option>同城活动</option>
                                    <option>线上活动</option>
                                </select></p>
                        </div>
                        <div class="item cat_item">
                            <span></span>
                            <p>
                                <input type="radio" class="ck" checked="checked" value="1" name="Sports" />
                                羽球/乒乓</p>
                            <p>
                                <input type="radio" class="ck" checked="checked" value="2" name="Sports" />
                                篮球/足球</p>
                            <p>
                                <input type="radio" class="ck" checked="checked" value="3" name="Sports" />
                                网球/保龄</p>
                            <p>
                                <input type="radio" class="ck" checked="checked" value="4" name="Sports" />
                                台球</p>
                            <p>
                                <input type="radio" class="ck" checked="checked" value="5" name="Sports" />
                                骑行/跑步</p>
                            <p>
                                <input type="radio" class="ck" checked="checked" value="6" name="Sports" />
                                钓鱼</p>
                            <p>
                                <input type="radio" class="ck" checked="checked" value="7" name="Sports" />
                                登山/溯溪</p>
                            <p>
                                <input type="radio" class="ck" checked="checked" value="8" name="Sports" />
                                K歌/交友</p>
                            <p>
                                <input type="radio" class="ck" checked="checked" value="9" name="Sports" />
                                聚会聚餐</p>
                            <p>
                                <input type="radio" class="ck" checked="checked" value="10" name="Sports" />
                                其他</p>
                        </div>
                        <div class="item">
                            <span>活动标题：</span><input name="Title" type="text" class="txt" /></div>
                        <div class="item">
                            <span>活动时间：</span>
                            <p>
                                <input type="text" name="StartTime" class="txt" />
                                至
                                <input type="text" name="EndTime" class="txt" />
                            </p>
                        </div>
                        <div class="item">
                            <span>活动地址：</span><input name="Address" type="text" class="txt" /></div>
                        <div class="item">
                            <span>活动费用：</span>
                            <p>
                                <select name="event_cat">
                                    <option value="1">收费</option>
                                    <option value="2">免费</option>
                                </select></p>
                            <input name="Cost" type="text" class="txt pay_txt" value="0" />
                            <p>
                                元/人</p>
                        </div>
                        <div class="item">
                            <span>活动介绍：</span><p>
                                <textarea name="Remark" cols="" rows=""></textarea></p>
                        </div>
                        <div class="item">
                            <span></span>
                            <input name="" type="submit" value="提交活动" class="btn yahei" /></div>
                    </div>
                </div>
            </div>
            <% } %>
        </div>
    </div>
</asp:Content>
